package com.lch.webdemo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author: liuchenhui
 * @create: 2019-02-24 12:33
 **/
@Controller
public class SiteController {

    @RequestMapping("/ping")
    @ResponseBody
    public String ping() {
        return "我还活着！";
    }

    /**
     * 首页
     */
    @RequestMapping("/index")
    public String index() {
        return "index";
    }
}
